package com.jianyushe.gof23.learncode.creationalpattern.factory.abstractfactory;

import org.junit.Test;

/**
 * @author Create by Alvin
 * @Description TODO
 * @date 2021-10-11 16:09
 */
public class Client01Test {
    @Test
    public void test() {
        LuxuryFactory luxuryFactory = new LuxuryFactory();

        Engine engine = luxuryFactory.createEngine();
        Tyre tyre = luxuryFactory.createTyre();
        Seat seat = luxuryFactory.createSeat();

        engine.run();
        engine.start();
        tyre.revolve();
        seat.message();

    }
}
